package com.hex.ds.hdrs.log.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.bigdata.hbda.base.Page;
import com.hex.ds.hdrs.log.po.ServerInteractLog;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class ServerInteractLogDao extends BaseDao {

    public List<ServerInteractLog> queryServerLog(Map map, Page page) {
        return this.selectPage(ServerInteractLog.class, "com.hex.ds.hdrs.log.dao.ServerInteractLogDao.selectAll", page, map);
    }

    public void insert(ServerInteractLog serverInteractLog) {
        this.insert("com.hex.ds.hdrs.log.dao.ServerInteractLogDao.insert", serverInteractLog);
    }

    public void reductionServerLog(String bitchId) {
        this.insert("com.hex.ds.hdrs.log.dao.ServerInteractLogDao.reductionServerLog", bitchId);
    }

    public void delTaskByDate(Map map) {
        this.delete("com.hex.ds.hdrs.log.dao.ServerInteractLogDao.delTaskByDate", map);
    }
}